import request from '@/utils/request'

//获取库
export function getLibraryList(data) {
	return request({
		method: 'post',
		url: 'tbNetDiskDir/queryPageList',
		data
	})
}

//新增库
export function addedLibrary(data) {
	return request({
		method: 'post',
		url: 'tbNetDiskDir/add',
		data
	})
}

//修改库
export function updateLibrary(data) {
	return request({
		method: 'post',
		url: 'tbNetDiskDir/update',
		data
	})
}

//假删库
export function fakeDeleteLibrary(id) {
	return request({
		method: 'post',
		url: 'tbNetDiskDir/ban/' + id
	})
}

//真删库
export function realDeleteLibrary(id) {
	return request({
		method: 'post',
		url: 'tbNetDiskDir/delete/' + id
	})
}

//修改库名称
export function updateLibraryName(data) {
	return request({
		method: 'post',
		url: 'tbNetDiskDir/updateName',
		data
	})
}

//查询库详情 - 资源设置
export function queryLibrarySetting(id) {
	return request({
		method: 'get',
		url: 'tbNetDiskDir/querySet/' + id
	})
}

//查询库详情 - 资源详情
export function queryLibraryDetail(id) {
	return request({
		method: 'get',
		url: 'tbNetDiskDir/query/' + id
	})
}